<template>
	<view class="items_vies" >
		<view class="left_img">
			<image :src="listData.imageUrl" mode="aspectFit" class="images" v-if="listData.imageType =='image'"></image>
			<video :src="listData.imageUrl" class="images" v-else></video>
		</view>
		<view class="rigths" @click="handleClick(listData.id)">
			<view class="topsTest">
				{{listData.name}}
			</view>
			<view class="contens">
				<view class="leftT1">
					{{listData.area}}m²
				</view>
				<view class="letfT2">
					{{listData.floorNum}}/{{listData.totalFloorNum}}层
				</view>
				<view class="letfT3">
					{{listData.facingName}}
				</view>
			</view>
			<view class="contens_12">
				<view class="iconsimg">
					<image src="/static/coment/adderss.svg" mode="aspectFit" class="image"></image>
				</view>
				<view class="testc">
					{{listData.address}}
				</view>
			</view>
			<view class="machs">
				<view class="machs1">
					¥
				</view>
				<view class="machs2">
					{{listData.price}}
				</view>
				<view class="machs3">
					/月
				</view>
			</view>
			<view class="footer">
				<view class="itemsFoort" v-for="items in listData.tagNameList" :key="items">
					{{items}}
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import { ref, onMounted } from 'vue'
	const props = defineProps({
		 listData: { type: Object, default: ()=>{return {tagNameList:[]}} },
	})
	onMounted(()=>{
		// console.log('listData',props.listData)
	})
	const handleClick = (id) => {
		uni.navigateTo({
			url: '/pagesA/details/details?id=' + id
		})
	}
</script>

<style lang="less" scoped>
	.items_vies {
		width: 100%;
		height: 204rpx;
		display: flex;
		margin-bottom: 40rpx;
	
		// border: 1px solid red;
		.left_img {
			width: 230rpx;
			height: 100%;
			background: #e3e4e5;
			.images {
				width: 100%;
				height: 100%;
			}
		}
	
		.rigths {
			height: 100%;
			margin-left: 24rpx;
			width: calc(100% - 254rpx);
	
			// border: 1px solid;
			.topsTest {
				font-family: PingFangSC-Semibold;
				font-size: 30rpx;
				color: #000000;
				line-height: 36rpx;
				font-weight: 600;
				// border: 1px solid red;
			}
	
			.contens {
				width: 100%;
				margin-top: 12rpx;
				// height: 24rpx;
				display: flex;
				align-items: center;
				font-size: 24rpx;
				color: #666666;
				line-height: 26rpx;
				font-family: ArialMT;
				font-weight: 400;
	
				.leftT1 {
					width: 74rpx;
					border-right: 1rpx solid #666;
					display: flex;
					align-items: center;
	
				}
	
				.letfT2 {
					width: 116rpx;
					border-right: 1rpx solid #666;
					display: flex;
					align-items: center;
					justify-content: center;
				}
	
				.letfT3 {
					width: 120rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
	
			.contens_12 {
				width: 100%;
				// height: 26rpx;
				margin-top: 12rpx;
				font-family: PingFangSC-Regular;
				font-size: 24rpx;
				color: #666666;
				line-height: 26rpx;
				font-weight: 400;
				display: flex;
	
				.iconsimg {
					width: 36rpx;
					height: 26rpx;
					margin-right: 8rpx;
	
					.image {
						width: 100%;
						height: 100%;
					}
				}
			}
	
			.machs {
				width: 100%;
				height: 36rpx;
				margin-top: 12rpx;
	
				display: flex;
	
				.machs1 {
					font-family: ArialMT;
					font-size: 24rpx;
					color: #EE7930;
					line-height: 36rpx;
					font-weight: 400;
					// margin-right: ;
					width: 21rpx;
				}
	
				.machs2 {
					font-family: Arial-BoldMT;
					font-size: 32rpx;
					color: #EE7930;
					line-height: 36rpx;
					font-weight: 700;
				}
	
				.machs3 {
					font-family: PingFangSC-Regular;
					font-size: 24rpx;
					color: #EE7930;
					line-height: 36rpx;
					font-weight: 400;
				}
			}
	
			.footer {
				width: 100%;
				margin-top: 6rpx;
				// border: 1px solid;
				height: 32rpx;
				display: flex;
				flex-wrap: wrap;
	
				.itemsFoort {
					min-width: 50rpx;
					height: 32rpx;
					background: #F2F2F2;
					border-radius: 4rpx;
					margin-right: 8rpx;
					padding: 4rpx 8rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					font-family: PingFangSC-Regular;
					font-size: 20rpx;
					color: #666666;
					letter-spacing: 0;
					line-height: 24rpx;
					font-weight: 400;
				}
			}
		}
	}
</style>